import React,{Component} from 'react'
import {render} from 'react-dom'
import { Provider } from 'react-redux';
import PureRenderMixin from 'react-addons-pure-render-mixin'
import {
  BrowserRouter,
  Route,
  Switch,
  Link
} from 'react-router-dom';
import Home from '../../pages/admin/page/subpage/index.js'

class Router extends Component {
	  constructor(props, context){
	  	super(props,context);
	    this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this)
	  }
	  render(){
	  	return (
				<div className='body'>
	  				<BrowserRouter>
	  					<Switch>
	  						<Route exact path='/admin' component={Home}></Route>
	  					</Switch>
	  				</BrowserRouter>	
				</div>         
	  	)
	  }	
}
export default Router